package com.ayx.springcloud.service;

import com.ayx.springcloud.service.Impl.PaymentServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "CLOUD-PROVIDER-HYSTRIX-PAYMENT",fallback = PaymentServiceImpl.class)
public interface PaymentService {

    @GetMapping("/payment/ok/{id}")
    public String paymentOk(@PathVariable("id") Long id);

    @GetMapping("/payment/timeout/{id}")
    public String paymentTimeout(@PathVariable("id") Long id);
}
